﻿<controls:ChildWindow x:Class="AR.Views.Candidat.HistoriqueCandidatView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
HasCloseButton="True"      
xmlns:ViewModels="clr-namespace:AR.ViewModels"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
xmlns:viewmodel ="clr-namespace:AR.ViewModel.Candidat"             
Width="1000" Height="464.537" 
Title="Historique Candidat">
    
    <!--<sdk:ChildWindow.Resources>
        <viewmodel:HistoriqueCandidatViewModel x:Key="viewModel" />
    </sdk:ChildWindow.Resources>-->
    <Grid Width="Auto" Background="{StaticResource AtosBlue}"> <!--DataContext="viewModel">-->
        <sdk:DataGrid  x:Name="CandidatGrid" Width="Auto"  Height="Auto" ItemsSource="{Binding CandidatHistoriquesResult}"
                	AutoGenerateColumns ="False" IsReadOnly="True" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn Header="Nom" Binding="{Binding NOM}" />
                <sdk:DataGridTextColumn Header="Prénom" Binding="{Binding PRENOM}" />
                <sdk:DataGridTextColumn Header="Date de naissance" Binding="{Binding DATENAISSANCE, StringFormat=\{0:dd/MM/yyyy\}}" />
                <sdk:DataGridTextColumn Header="GCM estimée (RH)" Binding="{Binding GCM_ESTIMEE_RH}" />
                <sdk:DataGridTextColumn Header="GCM estimée (SM)" Binding="{Binding GCM_ESTIMEE_SM}" />
                <sdk:DataGridTextColumn Header="Dernier employeur " Binding="{Binding DERNIER_EMPLOYEUR}" />
                <sdk:DataGridTextColumn Header="Ancien salaire" Binding="{Binding SALAIRE_ACTUELLE}" />
                <sdk:DataGridTextColumn Header="Salaire souhaité" Binding="{Binding SALAIRE_DEMANDE}" />
                <sdk:DataGridTextColumn Header="Préavis" Binding="{Binding PREAVIS}" />
                <sdk:DataGridTextColumn Header="Teléphone" Binding="{Binding TEL}" />
                <sdk:DataGridTextColumn Header="Email" Binding="{Binding EMAIL}" />
                <sdk:DataGridTextColumn Header="Date d'entretien technique" Binding="{Binding  DATE_ENTRETIEN_TECHNIQUE, StringFormat=\{0:dddd dd/MM/yy HH:mm\}, ConverterCulture=fr-FR}" />
                <sdk:DataGridTextColumn Header="Date d'entretien RH" Binding="{Binding DATE_ENTRETIEN_RH, StringFormat=\{0:dddd dd/MM/yy HH:mm\}, ConverterCulture=fr-FR}" />
                <sdk:DataGridTextColumn Header="Remarque" Binding="{Binding REMARQUE}" />
                <sdk:DataGridTextColumn Header="Poste" Binding="{Binding POSTE}" />
                <sdk:DataGridTextColumn Header="Projet" Binding="{Binding PROJET}" />
                <sdk:DataGridTextColumn Header="CV" Binding="{Binding CV}" />
                <sdk:DataGridTextColumn Header="Practice" Binding="{Binding PRACTICE}" />
                <sdk:DataGridTextColumn Header="Statut" Binding="{Binding STATUT_CANDIDAT}" />
                <sdk:DataGridTextColumn Header="Niveau études " Binding="{Binding ETUDE}" />
                <sdk:DataGridTextColumn Header="Niveau expérience " Binding="{Binding EXPERIENCE}" />
                <sdk:DataGridTextColumn Header="Modifié par" Binding="{Binding USER_NAME}" />
                <sdk:DataGridTextColumn Header="Modifié le" Binding="{Binding DATE_MODIFICATION, StringFormat=\{0:dd/MM/yy HH:mm:ss\}}" />
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>

</controls:ChildWindow>